<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
<div id="app">
  {{message}}
<cpn></cpn>
</div>
<div id="app2">
<my-cpn></my-cpn>
</div>
<script src="../js/vue.js"></script>
<script>
  const cpnD = Vue.extend({
    template:`
    <div>
    <h2>asdfag<h2>
    <p>asdfgta</p>
    <div>
    `
  })
  let app = new Vue({
    el:'#app',
    data:{
      message:'123',
      name:'321',
    },
    components:{
      cpn: cpnD
    }
  })
  const app2 = new Vue({
    el:'#app2'
  })
</script>
</body>
</html>